package com.rain.bee.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.rain.bee.entity.User;

/**
 * Feign core
 *@Title:  
 *@Description:  
 *@Author: leaf  
 *@Since:2019年2月18日  
 *@Version:1.1.0
 */
@FeignClient(value = "microservice-provider-bee")
public interface IMyFeignClient {

	@GetMapping("test/{id}")
	public String test(@PathVariable String id);

	@PostMapping("/post")
	public String post(@RequestBody User user);

}
